
public class ex_4_8{
	public static void main(String[] srgs){
		int ary[]={10,20,30,40,50};
		int i,ave,sum=0;
		System.out.println("** result ***");
		for(i=0;i<5;i++)
			System.out.println("ary[" + i + "]=" + ary[i]);
		for(i=0;i<5;i++)
			sum+=ary[i];
		ave=sum/5;
		System.out.println("sum =" + sum);
		System.out.println("average = " + ave);
	}
}